<?php

class Util_User {
		
	/**
	 * @return $role_id - rola globalna z sesji 
	 */
	static public function whoAmI(){
		if(isset($_SESSION['user'])){
			return $_SESSION['user']->acle_role_id;
		} else return Enum_Roles::GUEST;
	}
		
	static public function myLogin(){
		if(isset($_SESSION['user'])){
			return $_SESSION['user']->user_login;
		} else return null;
	}

	static public function myId(){
		return Zend_Auth::getInstance()->getIdentity();
	}
	
}